package com.suning.sawp.dto.task;

import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 
 * 店员任务<br> 
 * 〈功能详细描述〉
 *
 * @author 12061818
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class StoreManTask implements Serializable, Comparable<StoreManTask> {

    /**
     */
    private static final long serialVersionUID = -4044680168837515410L;
    
    /**
     * 任务主题
     */
    private String taskTopic;
    
    /**
     * 任务类型
     */
    private String taskType;
    
    /**
     * 品类名称
     */
    private String categoryName;
    
    /**
     * 品类编码
     */
    private String categoryCode;
    
    /**
     * 排名
     */
    private Integer taskRank;
    
    /**
     * 排名趋势
     */
    private Integer rankTrend;
    
    /**
     * 目标台数
     */
    private Integer destNum;
    
    /**
     * 已完成台数
     */
    private Integer completeNum;
    
    /**
     * 任务提成
     */
    private BigDecimal taskCommssionAmount;
    
    /**
     * 任务销售额
     */
    private BigDecimal taskSaleAmount;
    
    /**
     * 任务状态
     */
    private Integer taskStatus;
    
    /**
     * 任务分配状态
     */
    private Integer taskAssignStatus;
    
    /**
     * 任务编号
     */
    private Long taskNo;
    
    /**
     * 待分配商品数
     */
    private Integer assignProductNum;

    public String getTaskTopic() {
        return taskTopic;
    }

    public void setTaskTopic(String taskTopic) {
        this.taskTopic = taskTopic;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public Integer getTaskRank() {
        return taskRank;
    }

    public void setTaskRank(Integer taskRank) {
        this.taskRank = taskRank;
    }

    public Integer getRankTrend() {
        return rankTrend;
    }

    public void setRankTrend(Integer rankTrend) {
        this.rankTrend = rankTrend;
    }

    public Integer getDestNum() {
        return destNum;
    }

    public void setDestNum(Integer destNum) {
        this.destNum = destNum;
    }

    public Integer getCompleteNum() {
        return completeNum;
    }

    public void setCompleteNum(Integer completeNum) {
        this.completeNum = completeNum;
    }

    public BigDecimal getTaskCommssionAmount() {
        return taskCommssionAmount;
    }

    public void setTaskCommssionAmount(BigDecimal taskCommssionAmount) {
        this.taskCommssionAmount = taskCommssionAmount;
    }

    public BigDecimal getTaskSaleAmount() {
        return taskSaleAmount;
    }

    public void setTaskSaleAmount(BigDecimal taskSaleAmount) {
        this.taskSaleAmount = taskSaleAmount;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Long getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(Long taskNo) {
        this.taskNo = taskNo;
    }

    public Integer getAssignProductNum() {
        return assignProductNum;
    }

    public void setAssignProductNum(Integer assignProductNum) {
        this.assignProductNum = assignProductNum;
    }

    public Integer getTaskAssignStatus() {
        return taskAssignStatus;
    }

    public void setTaskAssignStatus(Integer taskAssignStatus) {
        this.taskAssignStatus = taskAssignStatus;
    }

    @Override
    public int compareTo(StoreManTask o) {
        if (this.taskAssignStatus < o.getTaskAssignStatus()) {
            return -1;
        } else if (this.taskAssignStatus.equals(o.getTaskAssignStatus())) {
            return 0;
        } else {
            return 1;
        }
    }
    
    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
    
}
